<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-type"content="text/html; charset=utf-8" />
<title>Ignatius Park College</title>
<%= stylesheet_link_tag 'style' %>
<%= javascript_include_tag :defaults %>
<%= javascript_include_tag  "prototype", "application",  "effects", "controls", "multifile" %>
<%= calendar_date_select_includes %>
</head>
	<body>
		<div id="sponsors">
			<div id="page">
				
				<div id="header">
					<%= image_tag('logo.png') %>
				</div>
				
				<div id="menubar">
					<p>&nbsp;</p>
				</div>
				
				<div id="login_logout">
					<% if logged_in? %>
						User: <%= current_user.login %>
						<em><%= link_to '(Logout)', :controller => 'account', :action => 'logout' %></em>
					<% else %>
						Not logged in:
						<em><%= link_to "(Login)", :controller => 'account', :action => 'login' %></em>
					<% end %>
				</div>

				<div id="content">
    				<% unless flash[:notice].blank? %>
    				<span class="notification"><%= flash[:notice] %></span>
    				<% end %>
					<%= yield %>
				</div>
				
			    <hr align = centre width ="95%" />
				<div id="navigation">
					<ul>
						<li><%= link_to 'My Account', users_path %></li>
    					<li><%= link_to 'Posts', posts_path %></li>
						<li><%= link_to 'PD Sessions', pdsessions_path %></li>
						<% if logged_in? && current_user.role == 'PDUser' %>
							<li><%= link_to 'My Certificates', documents_path %></li>
						<% end %>
						<% if logged_in? && current_user.role == 'PDAdmin' %>
							<li><%= link_to 'New Post', new_post_path %></li>
							<li><%= link_to 'New PDSession', new_pdsession_path %></li>
						<% end %>
    				</ul>
				</div>
				
				<b class="rbottom">
				<b class="r4"></b>
				<b class="r3"></b>
				<b class="r2"></b>
				<b class="r1"></b>
				</b>
				
			</div>
			<p>&nbsp;</p>
			<p>&nbsp;</p>
		</div>
	</body>
</html>